//加载角色信息----------------------------------------------------------------------
var current_player_role_info;
function gamePlayerRoleInfo(roleId) {
	$.ajax({
		type:"post",
		url: ajaxUrl + "/api/1.0/game/player/role/info.js",
		data:{
			token : window.localStorage.getItem('token'),
			sid: currentSID,
			gameId: 'BOXY',
			id: roleId,
			jobId : getTimeMs()
		},
		dataType:"json",
		success:function(request){
			console.log(request);	
			current_player_role_info = request.data;
		},
		error:function(error){
			console.log(error);	
		}
	});		
}
//加载宠物信息----------------------------------------------------------------------
var current_player_role_pet_info;
function gamePlayerRolePetInfo(roleId) {
	$.ajax({
		type:"post",
		url: ajaxUrl + "/api/1.0/game/player/role/pet.js",
		data:{
			token : window.localStorage.getItem('token'),
			sid: currentSID,
			gameId: 'BOXY',
			id: roleId,
			jobId : getTimeMs()
		},
		dataType:"json",
		success:function(request){
			console.log(request);	
			current_player_role_pet_info = request.data;
		},
		error:function(error){
			console.log(error);	
		}
	});		
}
//加载角色职业技能信息----------------------------------------------------------------------
var current_player_role_skill_list;
function gamePlayerRoleSkillInfo(roleId) {
	$.ajax({
		type:"post",
		url: ajaxUrl + "/api/1.0/game/player/role/skill.js",
		data:{
			token : window.localStorage.getItem('token'),
			sid: currentSID,
			gameId: 'BOXY',
			id: roleId,
			jobId : getTimeMs()
		},
		dataType:"json",
		success:function(request){
			console.log(request);	
			current_player_role_skill_list = request.data;
		},
		error:function(error){
			console.log(error);	
		}
	});		
}
//加载角色装备信息----------------------------------------------------------------------
var current_player_role_equip_info;
function gamePlayerRoleEquipInfo(roleId) {
	$.ajax({
		type:"post",
		url: ajaxUrl + "/api/1.0/game/player/role/equip.js",
		data:{
			token : window.localStorage.getItem('token'),
			sid: currentSID,
			gameId: 'BOXY',
			id: roleId,
			jobId : getTimeMs()
		},
		dataType:"json",
		success:function(request){
			console.log(request);	
			current_player_role_equip_info = request.data;
		},
		error:function(error){
			console.log(error);	
		}
	});		
}
//加载角色道具信息----------------------------------------------------------------------
var current_player_role_prop_info;
function gamePlayerRolePropInfo(roleId) {
	$.ajax({
		type:"post",
		url: ajaxUrl + "/api/1.0/game/player/role/prop.js",
		data:{
			token : window.localStorage.getItem('token'),
			sid: currentSID,
			gameId: 'BOXY',
			id: roleId,
			jobId : getTimeMs()
		},
		dataType:"json",
		success:function(request){
			console.log(request);	
			current_player_role_prop_info = request.data;
		},
		error:function(error){
			console.log(error);	
		}
	});		
}